#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
int main()
{
	int arr[20] = { 99,78,43,23,14,29,77,44,0,88,22,18,43,55,1,2,3,4,78,5 };
	Heap FirstHeap;
	HeapInit(&FirstHeap);
	for (int i = 0; i < 20; i++)
	{
		HeapPush(&FirstHeap, arr[i]);
	}
	int k = 15;
	while (k--)
	{
		printf("%4d", HeapTop(&FirstHeap));
		HeapPop(&FirstHeap);
		
	}
	/*for (int i = 0; i < 5; i++)
	{
		printf("%4d", FirstHeap.a[i]);
	}*/

	
	HeapDestroy(&FirstHeap);
	return 0;
}

